<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>javascript 阶段</title>
    <style>
        [class^="box"] {
            height: 100px;
            border-bottom: 5px solid #000;
        }
    </style>
</head>
<body>
    <div class="box-1"></div>
    <div class="box-2"></div>


    <script src="./common/util.js"></script>
    <script>
        // 设置第一个div元素的超文本
        // _html(".box-1","秋天来了，冬天还会远吗?");
        _html(".box-1","<h1>秋天来了，冬天还会远吗?</h1>");

        // 设置第二个div元素的纯文本
        // _text(".box-2","<h1>秋天来了，冬天还会远吗?</h1>");
        _text(".box-2","秋天来了，冬天还会远吗?");
    </script>
</body>
</html>